package net.lainiao.jwt.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * Created by Administrator on 2018/6/8.
 */
@Controller
public class HomeController {
    @Value("${server.port}")
    private String serverPort;
    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String index(Model model) {
        model.addAttribute("serverPort",serverPort);
        return "home/index";
    }

    @RequestMapping(value = "/home/index", method = RequestMethod.GET)
    public String homeindex(Model model) {
        model.addAttribute("serverPort",serverPort);
        return "home/index";
    }
}
